<?php

define("DEVELOPMENT", 1);

if (DEVELOPMENT) {

	define("DB_USER", "root");
	define("DB_PASSWORD", NULL);
	define("DB_HOST", "localhost");
	define("DB_DATABASE", "TutorService");
	define("SERVER_PATH", "/TutorService");
	define("INCLUDE_PATH", "C:/");
	define("UPLOAD_PATH", "C:/");
	define("ERROR_PAGE", "error.php");
    
    error_reporting(E_ALL);
    
} else {

    define("DB_USER", "root");
	define("DB_PASSWORD", NULL);
	define("DB_HOST", "localhost");
	define("DB_DATABASE", "TutorService");
	define("SERVER_PATH", "/TutorService");
	define("INCLUDE_PATH", "/srv/www/danielpm006.com/");
	define("UPLOAD_PATH", "/srv/www/danielpm006.com/");
	define("ERROR_PAGE", "error.php");

    error_reporting((E_ALL ^ E_NOTICE) ^ E_DEPRECATED);
}

define("STUDENT_ROLE", 1);
define("TUTOR_ROLE", 2);
define("ADMIN_ROLE", 3);

define("PROTOCOL", (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"]=="on") ? "https://" : "http://");

?>